home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / share / 17 / dings_e.exe / Compiler / Include / Windows.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-11  |  2.7 KB  |  128 lines

  1. /*
  2.     windows.h - main header file for the Win32 API
  3.  
  4.     Written by Anders Norlander <anorland@hem2.passagen.se>
  5.  
  6.     This file is part of a free library for the Win32 API.
  7.  
  8.     This library is distributed in the hope that it will be useful,
  9.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11.  
  12. */
  13. #ifndef _WINDOWS_
  14. #define _WINDOWS_
  15. #endif
  16. #ifndef _WINDOWS_H
  17. #define _WINDOWS_H
  18.  
  19.  
  20.  
  21.  
  22. /* translate GCC target defines to MS equivalents */
  23. #if defined(__i686__) && !defined(_M_IX86)
  24. #define _M_IX86 600
  25. #elif defined(__i586__) && !defined(_M_IX86)
  26. #define _M_IX86 500
  27. #elif defined(__i486__) && !defined(_M_IX86)
  28. #define _M_IX86 400
  29. #elif defined(__i386__) && !defined(_M_IX86)
  30. #define _M_IX86 300
  31. #endif
  32. #if defined(_M_IX86) && !defined(_X86_)
  33. #define _X86_
  34. #elif defined(_M_ALPHA) && !defined(_ALPHA_)
  35. #define _ALPHA_
  36. #elif defined(_M_PPC) && !defined(_PPC_)
  37. #define _PPC_
  38. #elif defined(_M_MRX000) && !defined(_MIPS_)
  39. #define _MIPS_
  40. #elif defined(_M_M68K) && !defined(_68K_)
  41. #define _68K_
  42. #endif
  43.  
  44. #ifdef RC_INVOKED
  45. /* winresrc.h includes the necessary headers */
  46. #include <winresrc.h>
  47. #else
  48.  
  49. #ifdef __GNUC__
  50. #if defined(__cplusplus) && !defined(NONAMELESSUNION)
  51. #define _ANONYMOUS_UNION
  52. #endif
  53. #endif
  54.  
  55. #ifndef _ANONYMOUS_UNION
  56. #define _UNION_NAME(x) x
  57. #define DUMMYUNIONNAME    u
  58. #define DUMMYUNIONNAME2    u2
  59. #define DUMMYUNIONNAME3    u3
  60. #else
  61. #define _UNION_NAME(x)
  62. #define DUMMYUNIONNAME
  63. #define DUMMYUNIONNAME2
  64. #define DUMMYUNIONNAME3
  65. #endif
  66. #ifndef _ANONYMOUS_STRUCT
  67. #define _STRUCT_NAME(x) x
  68. #define DUMMYSTRUCTNAME    s
  69. #define DUMMYSTRUCTNAME2 s2
  70. #define DUMMYSTRUCTNAME3 s3
  71. #else
  72. #define _STRUCT_NAME(x)
  73. #define DUMMYSTRUCTNAME
  74. #define DUMMYSTRUCTNAME2
  75. #define DUMMYSTRUCTNAME3
  76. #endif
  77.  
  78. #ifndef NO_STRICT
  79. #ifndef STRICT
  80. #define STRICT 1
  81. #endif
  82. #endif
  83.  
  84. #include <stdarg.h>
  85. #include <windef.h>
  86. #include <wincon.h>
  87. #include <basetyps.h>
  88. #include <excpt.h>
  89. #include <winbase.h>
  90. #include <wingdi.h>
  91. #include <winuser.h>
  92. #include <winnls.h>
  93. #include <winver.h>
  94. #include <winnetwk.h>
  95. #include <winreg.h>
  96. #include <winsvc.h>
  97.  
  98. #ifndef WIN32_LEAN_AND_MEAN
  99. #include <commdlg.h>
  100. #include <cderr.h>
  101. #include <dde.h>
  102. #include <ddeml.h>
  103. #include <dlgs.h>
  104. #include <lzexpand.h>
  105. #include <nb30.h>
  106. #include <rpc.h>
  107. #include <shellapi.h>
  108. #include <winperf.h>
  109. #include <winspool.h>
  110. #if defined(Win32_Winsock) || !(defined(__INSIDE_CYGWIN__) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(_UWIN))
  111. #include <winsock.h>
  112. #endif
  113. #endif /* WIN32_LEAN_AND_MEAN */
  114.  
  115. #endif /* RC_INVOKED */
  116.  
  117. #ifdef __OBJC__
  118. /* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
  119.    but undefining it causes trouble as well if a file is included after
  120.    windows.h
  121. */
  122. #undef BOOL
  123. #endif
  124.  
  125.  
  126.  
  127. #endif
  128.